#!/usr/bin/env python3
# -*- coding: utf-8 -*-

Import('env')
env = env.Clone()

# 自动查找所有 .c 和 .cpp 文件
c_sources = env.GlobSources('osal/src/*.c')
cpp_sources = env.GlobSources('osal/src/*.cpp')
sources = c_sources + cpp_sources

env.AddStaticLibrary(
    name='posix_osal',
    sources=sources,
    include_paths=['../interfaces/osal/inc'],
    export_include_paths=['../interfaces/osal/inc'],
    static_libs=['core', 'utils'],
    cflags=['-g', '-Wall'],
    cxxflags=['-g', '-Wall']
)